﻿namespace ctolua.Models
{
    public class MArchive
    {    /// <summary>
         /// 获取当前地图的指定key的存档值
         /// </summary>
         /// <param name="key ">  指定的全局存档key值   </param>
         /// <returns>全局存档值</returns>
        public static void get_global_map_archive(string key) => game_api.get_global_map_archive(key);
        /// <summary>
        /// 获取地图全局指定key存档的第n名玩家的昵称
        /// </summary>
        /// <param name="rank_key ">  key值   </param>
        /// <param name="num ">  第n名   </param>
        /// <returns>昵称</returns>
        public static void get_rank_player_nickname(string rank_key, int? num) => game_api.get_rank_player_nickname(rank_key, num);
        /// <summary>
        /// 获取地图全局指定key存档的第n名玩家的存档值
        /// </summary>
        /// <param name="rank_key ">  key值   </param>
        /// <param name="num ">  第n名   </param>
        /// <returns>存档值</returns>
        public static void get_rank_player_global_archive_value(string rank_key, int? num) => game_api.get_rank_player_global_archive_value(rank_key, num);
        /// <summary>
        /// 获取玩家指定的个人存档栏位的第n名玩家的昵称
        /// </summary>
        /// <param name="archive_key ">  玩家存档栏位   </param>
        /// <param name="num ">  第n名   </param>
        /// <returns>昵称</returns>
        public static void get_archive_rank_player_nickname(int? archive_key, int? num) => game_api.get_archive_rank_player_nickname(archive_key, num);
        /// <summary>
        /// 获取玩家指定的个人存档栏位的第n名玩家的存档值
        /// </summary>
        /// <param name="archive_key ">  玩家存档栏位   </param>
        /// <param name="num ">  第n名   </param>
        /// <returns>存档值</returns>
        public static void get_archive_rank_player_archive_value(int? archive_key, int? num) => game_api.get_archive_rank_player_archive_value(archive_key, num);
        /// <summary>
        /// 上传玩家排行榜分数
        /// </summary>
        /// <param name="role ">  玩家   </param>
        /// <param name="score ">  排行榜分数   </param>
        /// <param name="accumulate ">  是否累积计算分数   False</param>
        public static void upload_role_billboard_score(Role role, int? score, bool? accumulate) => game_api.upload_role_billboard_score(role, score, accumulate);
    }
}
